package com.shkco.service;

import com.shkco.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/user")
@FeignClient(value="user-service", fallback = UserServiceFallbackFactory.class)
public interface UserService {

    @GetMapping("/getUserById/{id}")
    User getUserById(@PathVariable("id") Long id);
}
